package cn.tedu.qxhouserent.passport.mapper;

import cn.tedu.qxhouserent.passport.pojo.entity.RolePermission;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface RolePermissionMapper extends BaseMapper<RolePermission> {

    int insertBatch(RolePermission[] rolePermissions);

    int deleteByRoleId(Long roleId);

    int deleteByPermissionId(Long permissionId);
}
